<%@page contentType="text/html; charset=utf-8"%>
<%@ include file="../inc/TagLibs.jsp"%>
<c:set var="pageTitle" value="外协记录" />
<%@ include file="../inc/Title.jsp"%>
<head>
<link rel="stylesheet" type="text/css" href="/css/base.css" />
<script language="javascript">
	function showMe(){
		if(parent.document.getElementById("detailFrm")!=null){
			parent.document.getElementById("detailFrm").style.height=document.body.scrollHeight+"px";
		}
	}
</script>
</head>
<body style="margin:0px;padding:0px;" oncontextmenu="return false" onLoad="showMe();"   class="sheet">
<div class="sheet-main" style="width:980px">
	  <div class="sheet-list">
			  <div class="table-list" >
			   <fieldset class="det_fieldset "> <legend class="mag10">外协记录</legend>  	
			     <table width="100%" align="center">      
					<tr>
						<th width="8%">日期</th>
						<th width="12%">单号</th>
						<th width="10%">项目类型</th>
						<th width="12%">内容</th>
						<th width="10%">材质</th>
						<th width="12%">规格</th>
						<th width="12%">制作要求</th>
						<th width="6%">单位</th>
						<th width="6%">数量</th>
						<th width="6%">单价</th>
						<th width="6%">金额</th>
					</tr>
					<c:forEach var="item" items="${items}">
					<tr>
						<td><fmt:formatDate value="${item[0].cooperDate}" pattern="yyyy-MM-dd"/></td>
						<td>${item[0].billCode}</td>
						<td>${item[1].makeTypeName}</td>
						<td><commonTag:parseEnterToBr source="${item[1].cooperBillItem.finishedContent}" /></td>
						<td>${item[1].cooperBillItem.proName}</td>
						<td><commonTag:parseEnterToBr source="${item[1].cooperBillItem.specification}" /></td>
						<td><commonTag:parseEnterToBr source="${item[1].cooperBillItem.makeRequire}" /></td>
						<td>
							<c:if test="${item[1].cooperBillItem.priceType=='AREA'}">平方米</c:if>
							<c:if test="${item[1].cooperBillItem.priceType=='LENGTH'}">
								<c:if test="${item[1].cooperBillItem.lengType=='M'}">米</c:if><c:if test="${item[1].cooperBillItem.lengType=='CM'}">公分</c:if>
							</c:if>
							<c:if test="${item[1].cooperBillItem.priceType=='AMOUNT'}">${item[1].cooperBillItem.unit}</c:if>
						</td>
						<td>
							<c:if test="${item[1].cooperBillItem.priceType=='AREA' || item[1].cooperBillItem.priceType=='LENGTH'}"><commonTag:parseBigDecimal source="${item[1].cooperBillItem.squareNum}" /></c:if>
							<c:if test="${item[1].cooperBillItem.priceType=='AMOUNT'}"><commonTag:parseBigDecimal source="${item[1].cooperBillItem.amount}" /></c:if>
						</td>
						<td><commonTag:parseBigDecimal source="${item[1].cooperBillItem.unitPrice}" /></td>
						<td><commonTag:parseBigDecimal source="${item[1].cooperBillItem.cost}" /></td>
					</tr>
					</c:forEach>
				 </table>
			   </fieldset>
			  </div>
			</div>
</div>
</body>
</html>

